package org.lyricedit.domain;

public enum LexicalStress {
	NONE,
	PRIMARY,
	SECONDARY;
	
	public static LexicalStress fromOrdinal(int o){
		for (LexicalStress stress: LexicalStress.values()){
			if (stress.ordinal() == o)
				return stress;
		}
		
		throw new IllegalArgumentException();
	}
}
